package com.ehome.poct.core.api.feign;

import com.ehome.core.page.PageInfo;
import com.ehome.poct.core.api.dto.order.OperateRecordDTO;
import com.ehome.poct.core.api.dto.order.TestStripPriceProfitSchemeOperateRecordDTO;
import com.ehome.poct.core.api.vo.order.TestStripPriceProfitSchemeOperateRecordVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * 价格方案操作记录标控制器
 *
 * @author muqiu
 * @Date 2022-07-04 15:32
 */
@FeignClient(value = "${service.poct-core:}${service.suffix.poct-core:}",path="/profitSchemeOperateRecord",contextId = "TestStripPriceProfitSchemeOperateRecordFeginClient")
public interface TestStripPriceProfitSchemeOperateRecordFeginClient {
    /**
     * 保存操作记录
     * @param testStripPriceProfitSchemeOperateRecordDTO
     */
    @PostMapping
    void saveRecord(@RequestBody TestStripPriceProfitSchemeOperateRecordDTO testStripPriceProfitSchemeOperateRecordDTO);

    @GetMapping("/page")
    PageInfo<TestStripPriceProfitSchemeOperateRecordVO> pageQuery(@SpringQueryMap OperateRecordDTO dto);
}
